package com.qzsoft.zhjd.machine.modules.machinefuel.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName MachineFuelEntity
 * @Description 实时油位
 * @author linhuawei
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("machine_fuel")
public class MachineFuelEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    
    /**
     * 设备主键
     */
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String machineId;
    
    /**
     * 设备编号
     */
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String machineKey;
    
    /**
     * 上报时间
     */
    private Date reportDate;
    
    /**
     * 油位百分比
     */
    private BigDecimal percentage;
    
    /**
     * 油位数值
     */
    private BigDecimal volume;
    
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private Date createDate;

}
